# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=yamllint
pkgver=1.23.0
pkgrel=0
pkgdesc="A linter for YAML files"
url="https://github.com/adrienverge/yamllint"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-pathspec py3-setuptools py3-yaml"
source="https://github.com/adrienverge/yamllint/archive/v$pkgver/yamllint-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="aeda995ce5add571098c224b4e699688d1a5a6f873cedc075cfb6f1ca8538e4fd641f64c5a871a1da9b6836bf5eb6c3faa78958f05a306292b61a1e02e46f924  yamllint-1.23.0.tar.gz"
